Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / GetPdfEnum Method / GetPdfEnum<TEnum>(IPdfDictHolder,String,Nullable<TEnum>) Method
The current PDF dictionary holder.
The key of the value to get.
The default value.

In This Topic
    GetPdfEnum<TEnum>(IPdfDictHolder,String,Nullable<TEnum>) Method
    In This Topic
    Gets the GrapeCity.Documents.Pdf.PdfEnum<TEnum> struct associated with the specified key (in a PDF an GrapeCity.Documents.Pdf.PdfEnum<TEnum> struct should be represented by a PDF name).

    Gets defValue if the value does not exist or cannot be converted to GrapeCity.Documents.Pdf.PdfEnum<TEnum>.

    Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to GrapeCity.Documents.Pdf.PdfEnum<TEnum>.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetPdfEnum(Of TEnum As {New, Struct})( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByVal defValue As System.Nullable(Of TEnum) _
    ) As System.Nullable(Of PdfEnum(Of TEnum))
    public static System.Nullable<PdfEnum<TEnum>> GetPdfEnum<TEnum>( 
       IPdfDictHolder pdh,
       System.string key,
       System.Nullable<TEnum> defValue
    )
    where TEnum: new(), struct

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to get.
    defValue
    The default value.

    Type Parameters

    TEnum

    Return Value

    The value associated with the specified key.
    See Also